<?php
$url = '1.htm';

$data = file_get_contents($url);

preg_match('#Teata otsimisest/leidmisest(.*)#is', $data, $logs);


//echo "Logid :". $logs[1]."<br/>";

preg_match('#eventlog(.*)eventlog#ixs', $logs[1], $loga);

//$loga=preg_match('#<div>(.*)<\/div>#is', $logs[1]);


echo "Logid :". $loga[1]."<br/>";

echo "<pre>";

print_r ($loga);




?> 